
package DBLayer;
import java.util.ArrayList;
import ModelLayer.Invoice;

/**
 *
 * @author Thomas
 */
public interface IFDBInvoice 
{
    
    //get all invoices
    public ArrayList<Invoice> getAllInvoices();
    //get one invoice having the id
    public Invoice findInvoice(int invoiceId);
    //find all invoices created on a given date
    public ArrayList<Invoice> searchInvoiceDate(String date);
    //finds an invoice with a given amount (made for test purpose)
    public Invoice findInvoiceWAmount(double amount);
    //insert a new invoice
    public int insertInvoice(Invoice invoice);
    //update information about an invoice
    public int updateInvoice(Invoice invoice);
    //delete a invoice
    public int deleteInvoice(int invoiceId);
    
}
